import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from "element-ui"
import axios from './util/request'
import 'element-ui/lib/theme-chalk/index.css'
import '../src/assets/icon/iconfont.css'
import '../src/assets/icon2/iconfont.css'
import VueAMap from 'vue-amap'

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.prototype.axios = axios
Vue.use(VueAMap);



// 安全配置必须放在API加载前
window._AMapSecurityConfig = {
  securityJsCode: 'e2ba8a5fa6754e1f60b36f3b79f2011c'
}

// 必须配置的初始化参数
VueAMap.initAMapApiLoader({
  key: 'd3a325e82b58b05fbb8f6f76c9c96437',
  plugin: [
    'AMap.Scale',
    'AMap.ToolBar',
    'AMap.MapType',
    'AMap.Geolocation'  // 新增定位插件
  ],
  v: '2.0'  // 必须明确指定版本
})



new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
